package com.jakewharton.rxbinding4.component;

import com.google.auto.value.AutoValue;

import ohos.agp.components.Component;

@AutoValue
public abstract class ComponentScrollChangeEvent {
    public static ComponentScrollChangeEvent create(
            Component view, int scrollX, int scrollY, int oldScrollX, int oldScrollY) {
        return new AutoValue_ComponentScrollChangeEvent(view, scrollX, scrollY, oldScrollX, oldScrollY);
    }

    ComponentScrollChangeEvent() {}

    public abstract Component view();

    public abstract int scrollX();

    public abstract int scrollY();

    public abstract int oldScrollX();

    public abstract int oldScrollY();
}
